#ifndef JAVASCRP_H_
#define JAVASCRP_H_

/* javascrp.h - interface to storing information for later JavaScript emission.
 *
 */

#ifndef INPUT_H_
#include "input.h"
#endif

enum JsClass
    {
    CLASS_SYMBOL        = 0x0001,
    CLASS_NONTERM       = 0x0002,
    CLASS_TERMINAL      = 0x0004,
    CLASS_COMMENT       = 0x0008,
    CLASS_ERROR         = 0x0010,
    };

void    JsAdd(TToken Token);
void    JsMarkClass(TToken Token, int Class);
void    JsMarkId(TToken Token, int Id);
void    JsWrite(const char* Filename);

#endif /* JAVASCRP_H_ */
